package com.sp.fresh_produce;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * 应用启动类
 * <p>
 * 负责启动 Spring Boot 应用，并配置 MyBatis 的 Mapper 扫描路径。
 */
@SpringBootApplication
@MapperScan(basePackages = "com.sp.fresh_produce.model.dao")
@EnableCaching
public class FreshProduceApplication {

    public static void main(String[] args) {
        // 禁用 Netty 对 sun.misc.Unsafe 的使用，避免 JDK 受限/弃用方法告警
        System.setProperty("io.netty.noUnsafe", "true");
        SpringApplication.run(FreshProduceApplication.class, args);
    }

}
